<template>
	<view class="details-container">
		<view class="blue-background"></view>
		
		<!-- 详情卡片 -->
		<view class="content">
			<view class="details-card">
				<!-- 加油站图片 -->
				<image :src="station.image" mode="aspectFill" class="station-image"></image>
				
				<!-- 基本信息 -->
				<view class="station-info">
					<view class="info-header">
						<text class="station-name">{{station.name}}（解放路店）</text>
						<view class="action-btns">
							<image src="/static/kun/index/refuel/plane@2x.png" mode="aspectFit" class="nav-icon"></image>
							<view class="phone-btn">
								<text class="iconfont icon-phone"></text>
							</view>
						</view>
					</view>
					
					<view class="business-time">
						<text>营业时间：周一至周五 早上8:00-晚上22:00</text>
					</view>
					
					<view class="location">
						<text>位置：山阳区人民路与解放路交叉口</text>
					</view>
				</view>
				
				<!-- 油价详情 -->
				<view class="price-info">
					<view class="price-title">油价详情</view>
					<view class="price-list">
						<view class="price-item" v-for="(price, type) in prices" :key="type">
							<text class="oil-type">{{type}}</text>
							<text class="price">¥{{price}}/L</text>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			station: {
				name: '中国石油加油站',
				image:"/static/kun/index/refuel/加油站.png"
			},
			prices: {
				'92#': '5.86',
				'95#': '5.86',
				'98#': '5.86',
				'0#': '5.86'
			}
		}
	}
}
</script>

<style lang="scss" scoped>
.details-container {
	min-height: 100vh;
	background: #f5f5f5;
	position: relative;
	padding: 0 20rpx;
	
	.blue-background {
		position: absolute;
		top: -89rpx;
		left: 0;
		right: 0;
		height: 400rpx;
		background: linear-gradient(135deg, #3887FC, #1B6AE9);
		z-index: 0;
	}
	
	.content {
		position: relative;
		z-index: 1;
		padding: 20rpx;
		
		.details-card {
			background: #fff;
			border-radius: 16rpx;
			overflow: hidden;
			box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.1);
			margin: 20rpx;
			padding: 20rpx;
			
			.station-image {
				width: 100%;
				height: 300rpx;
				border-radius: 8rpx;
			}
			
			.station-info {
				padding: 30rpx 0;
				border-bottom: 2rpx solid #f5f5f5;
				
				.info-header {
					display: flex;
					justify-content: space-between;
					align-items: center;
					margin-bottom: 20rpx;
					
					.station-name {
						font-size: 32rpx;
						font-weight: 500;
						color: #333;
					}
					
					.action-btns {
						display: flex;
						align-items: center;
						gap: 20rpx;
						
						.nav-icon {
							width: 40rpx;
							height: 40rpx;
						}
						
						.phone-btn {
							width: 60rpx;
							height: 60rpx;
							background: linear-gradient(135deg, #3887FC, #1B6AE9);
							border-radius: 50%;
							display: flex;
							align-items: center;
							justify-content: center;
							
							.iconfont {
								color: #fff;
								font-size: 28rpx;
							}
						}
					}
				}
				
				.business-time, .location {
					font-size: 26rpx;
					color: #666;
					margin-top: 10rpx;
				}
			}
			
			.price-info {
				padding-top: 30rpx;
				
				.price-title {
					font-size: 30rpx;
					font-weight: 500;
					color: #333;
					margin-bottom: 20rpx;
				}
				
				.price-list {
					.price-item {
						display: flex;
						justify-content: space-between;
						align-items: center;
						padding: 20rpx 0;
						border-bottom: 2rpx solid #f5f5f5;
						
						&:last-child {
							border-bottom: none;
						}
						
						.oil-type {
							font-size: 28rpx;
							color: #333;
						}
						
						.price {
							font-size: 28rpx;
							color: #FF6B35;
							font-weight: 500;
						}
					}
				}
			}
		}
	}
}
</style>
